package cn.iocoder.yudao.module.mzt.controller.admin.category.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 分类新增/修改 Request VO")
@Data
public class CategorySaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3708")
    private Long id;

    @Schema(description = "父ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "126")
    @NotNull(message = "父ID不能为空")
    private Long parentId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "类型不能为空")
    private String type;
    @Schema(description = "分类按钮类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "分类按钮类型")
    private String categoryType;
    @Schema(description = "事件", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    @NotNull(message = "事件不能为空")
    private Integer event;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "封面图")
    private String cover;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "路由地址")
    private String path;

    @Schema(description = "推荐", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "推荐不能为空")
    private Integer recommend;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序不能为空")
    private Integer sort;

    @Schema(description = "描述", example = "随便")
    private String remark;

    @Schema(description = "层级", example = "0")
    private Integer level;

    @Schema(description = "SEO标题")
    private String seoTitle;

    @Schema(description = "SEO关键词")
    private String seoKeywords;

    @Schema(description = "SEO描述", example = "随便")
    private String seoDescription;

}
